import http from '@/utils/request'

//获取接口列表
export const getApisList = (params) => {
  return http.post("/admin/permission/pageQuery", params);
};

//删除接口
export const deleteApi = (params) => {
  return http.delete("/admin/permission/delete", params);
};

//修改接口
export const updateApi = (params) => {
  return http.post("/admin/permission/update", params);
};

//添加接口
export const addApi = (params) => {
  return http.post("/admin/permission/insert", params);
};
//根据id查询接口
export const getApiById = (params) => {
  return http.get("/admin/permission/selectById", params);
};